import './common/js/jquery-3.3.1.min.js'
import '../static/layui/layui.js'
import "./common/js/allcss.js"
import "./common/js/window.js"
import * as Cache from "./common/js/cache.js"
import * as My from "./common/js/my.js"
import * as Message from "./common/js/message.js"
import Vue from 'vue'
import App from './App'
import axios from 'axios'
import {post,get,put} from './common/js/http'
import store from './vuex/store'
import './permission'
import router from './router'
import VueRouter from 'vue-router'
import ElementUI from 'element-ui'
import locale from 'element-ui/lib/locale/lang/zh-CN'
import i18n from './lang'
import '@/icons'
My.getIp()//拿到本地ip
Vue.use(VueRouter)
Vue.use(ElementUI, { locale })
axios.defaults.timeout = 1000 * 15
axios.defaults.baseURL = "https://192.168.2.104/crms/backend/web/"//crm服务器路径
{
    window.nat = "192.168.2.104"//freeswitch的服务器域名路径
    window.burl = axios.defaults.baseURL;//基础的路径
}
Vue.config.productionTip = false;
var xhr = new XMLHttpRequest();
xhr.withCredentials = true;
Vue.prototype.$post=post;//定义全局变量
Vue.prototype.$get=get;
Vue.prototype.$put=put;
Vue.prototype.$axios=axios;
Vue.prototype.$cache_=Cache;
Vue.prototype.$my_=My;
Vue.prototype.$configSouye = {//首页的显示配置
    sellRange:{show:true,name:'销售排行'},
    targetFinished:{show:true,name:'目标完成情况'},
    todaySituation:{show:true,name:'我的今日统计'},
    notify:{show:true,name:'通知公告'},
    todayNewAccount:{show:true,name:'今日新增意向客户'},
};//存储首页的所有项
Vue.prototype.$message_=Message;
import('./errorLog')
import('./logs')
/* eslint-disable no-new */
window.vue=new Vue({
    router,
    store,
    i18n,
    components: { App },
    template: '<App/>',
}).$mount("#app");